package com.utility.project.common.base;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * @author wangjiyun
 * @date 2022/12/19 18:03
 * @description 全局继承的基础类
 */
public class BaseBean implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 需要自己检查上游逻辑有没有set的 不一定有值
     */
    @TableField(exist = false)
    private String remoteIp = "";

    public String getRemoteIp() {
        return remoteIp;
    }

    public void setRemoteIp(String remoteIp) {
        this.remoteIp = remoteIp;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
